@@ -0,0 +1,18 @@ |
||
1 |
+{ |
|
2 |
+ "presets": [ |
|
3 |
+ ["env", { |
|
4 |
+ "modules": false, |
|
5 |
+ "targets": { |
|
6 |
+ "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] |
|
7 |
+ } |
|
8 |
+ }], |
|
9 |
+ "stage-2" |
|
10 |
+ ], |
|
11 |
+ "plugins": ["transform-vue-jsx", "transform-runtime"], |
|
12 |
+ "env": { |
|
13 |
+ "test": { |
|
14 |
+ "presets": ["env", "stage-2"], |
|
15 |
+ "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"] |
|
16 |
+ } |
|
17 |
+ } |
|
18 |
+} |
@@ -0,0 +1,9 @@ |
||
1 |
+root = true |
|
2 |
+ |
|
3 |
+[*] |
|
4 |
+charset = utf-8 |
|
5 |
+indent_style = space |
|
6 |
+indent_size = 2 |
|
7 |
+end_of_line = lf |
|
8 |
+insert_final_newline = true |
|
9 |
+trim_trailing_whitespace = true |
@@ -0,0 +1,5 @@ |
||
1 |
+/build/ |
|
2 |
+/config/ |
|
3 |
+/dist/ |
|
4 |
+/*.js |
|
5 |
+/test/unit/coverage/ |
@@ -0,0 +1,29 @@ |
||
1 |
+// https://eslint.org/docs/user-guide/configuring |
|
2 |
+ |
|
3 |
+module.exports = { |
|
4 |
+ root: true, |
|
5 |
+ parserOptions: { |
|
6 |
+ parser: 'babel-eslint' |
|
7 |
+ }, |
|
8 |
+ env: { |
|
9 |
+ browser: true, |
|
10 |
+ }, |
|
11 |
+ extends: [ |
|
12 |
+ // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention |
|
13 |
+ // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. |
|
14 |
+ 'plugin:vue/essential', |
|
15 |
+ // https://github.com/standard/standard/blob/master/docs/RULES-en.md |
|
16 |
+ 'standard' |
|
17 |
+ ], |
|
18 |
+ // required to lint *.vue files |
|
19 |
+ plugins: [ |
|
20 |
+ 'vue' |
|
21 |
+ ], |
|
22 |
+ // add your custom rules here |
|
23 |
+ rules: { |
|
24 |
+ // allow async-await |
|
25 |
+ 'generator-star-spacing': 'off', |
|
26 |
+ // allow debugger during development |
|
27 |
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' |
|
28 |
+ } |
|
29 |
+} |
@@ -0,0 +1,17 @@ |
||
1 |
+.DS_Store |
|
2 |
+node_modules/ |
|
3 |
+/dist/ |
|
4 |
+npm-debug.log* |
|
5 |
+yarn-debug.log* |
|
6 |
+yarn-error.log* |
|
7 |
+/test/unit/coverage/ |
|
8 |
+/test/e2e/reports/ |
|
9 |
+selenium-debug.log |
|
10 |
+ |
|
11 |
+# Editor directories and files |
|
12 |
+.idea |
|
13 |
+.vscode |
|
14 |
+*.suo |
|
15 |
+*.ntvs* |
|
16 |
+*.njsproj |
|
17 |
+*.sln |
@@ -0,0 +1,10 @@ |
||
1 |
+// https://github.com/michael-ciniawsky/postcss-load-config |
|
2 |
+ |
|
3 |
+module.exports = { |
|
4 |
+ "plugins": { |
|
5 |
+ "postcss-import": {}, |
|
6 |
+ "postcss-url": {}, |
|
7 |
+ // to edit target browsers: use "browserslist" field in package.json |
|
8 |
+ "autoprefixer": {} |
|
9 |
+ } |
|
10 |
+} |
@@ -0,0 +1,30 @@ |
||
1 |
+# admin system |
|
2 |
+ |
|
3 |
+> data visualization |
|
4 |
+ |
|
5 |
+## Build Setup |
|
6 |
+ |
|
7 |
+``` bash |
|
8 |
+# install dependencies |
|
9 |
+npm install |
|
10 |
+ |
|
11 |
+# serve with hot reload at localhost:8080 |
|
12 |
+npm run dev |
|
13 |
+ |
|
14 |
+# build for production with minification |
|
15 |
+npm run build |
|
16 |
+ |
|
17 |
+# build for production and view the bundle analyzer report |
|
18 |
+npm run build --report |
|
19 |
+ |
|
20 |
+# run unit tests |
|
21 |
+npm run unit |
|
22 |
+ |
|
23 |
+# run e2e tests |
|
24 |
+npm run e2e |
|
25 |
+ |
|
26 |
+# run all tests |
|
27 |
+npm test |
|
28 |
+``` |
|
29 |
+ |
|
30 |
+For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). |
@@ -0,0 +1,41 @@ |
||
1 |
+'use strict' |
|
2 |
+require('./check-versions')() |
|
3 |
+ |
|
4 |
+process.env.NODE_ENV = 'production' |
|
5 |
+ |
|
6 |
+const ora = require('ora') |
|
7 |
+const rm = require('rimraf') |
|
8 |
+const path = require('path') |
|
9 |
+const chalk = require('chalk') |
|
10 |
+const webpack = require('webpack') |
|
11 |
+const config = require('../config') |
|
12 |
+const webpackConfig = require('./webpack.prod.conf') |
|
13 |
+ |
|
14 |
+const spinner = ora('building for production...') |
|
15 |
+spinner.start() |
|
16 |
+ |
|
17 |
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { |
|
18 |
+ if (err) throw err |
|
19 |
+ webpack(webpackConfig, (err, stats) => { |
|
20 |
+ spinner.stop() |
|
21 |
+ if (err) throw err |
|
22 |
+ process.stdout.write(stats.toString({ |
|
23 |
+ colors: true, |
|
24 |
+ modules: false, |
|
25 |
+ children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. |
|
26 |
+ chunks: false, |
|
27 |
+ chunkModules: false |
|
28 |
+ }) + '\n\n') |
|
29 |
+ |
|
30 |
+ if (stats.hasErrors()) { |
|
31 |
+ console.log(chalk.red(' Build failed with errors.\n')) |
|
32 |
+ process.exit(1) |
|
33 |
+ } |
|
34 |
+ |
|
35 |
+ console.log(chalk.cyan(' Build complete.\n')) |
|
36 |
+ console.log(chalk.yellow( |
|
37 |
+ ' Tip: built files are meant to be served over an HTTP server.\n' + |
|
38 |
+ ' Opening index.html over file:// won\'t work.\n' |
|
39 |
+ )) |
|
40 |
+ }) |
|
41 |
+}) |
@@ -0,0 +1,54 @@ |
||
1 |
+'use strict' |
|
2 |
+const chalk = require('chalk') |
|
3 |
+const semver = require('semver') |
|
4 |
+const packageConfig = require('../package.json') |
|
5 |
+const shell = require('shelljs') |
|
6 |
+ |
|
7 |
+function exec (cmd) { |
|
8 |
+ return require('child_process').execSync(cmd).toString().trim() |
|
9 |
+} |
|
10 |
+ |
|
11 |
+const versionRequirements = [ |
|
12 |
+ { |
|
13 |
+ name: 'node', |
|
14 |
+ currentVersion: semver.clean(process.version), |
|
15 |
+ versionRequirement: packageConfig.engines.node |
|
16 |
+ } |
|
17 |
+] |
|
18 |
+ |
|
19 |
+if (shell.which('npm')) { |
|
20 |
+ versionRequirements.push({ |
|
21 |
+ name: 'npm', |
|
22 |
+ currentVersion: exec('npm --version'), |
|
23 |
+ versionRequirement: packageConfig.engines.npm |
|
24 |
+ }) |
|
25 |
+} |
|
26 |
+ |
|
27 |
+module.exports = function () { |
|
28 |
+ const warnings = [] |
|
29 |
+ |
|
30 |
+ for (let i = 0; i < versionRequirements.length; i++) { |
|
31 |
+ const mod = versionRequirements[i] |
|
32 |
+ |
|
33 |
+ if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { |
|
34 |
+ warnings.push(mod.name + ': ' + |
|
35 |
+ chalk.red(mod.currentVersion) + ' should be ' + |
|
36 |
+ chalk.green(mod.versionRequirement) |
|
37 |
+ ) |
|
38 |
+ } |
|
39 |
+ } |
|
40 |
+ |
|
41 |
+ if (warnings.length) { |
|
42 |
+ console.log('') |
|
43 |
+ console.log(chalk.yellow('To use this template, you must update following to modules:')) |
|
44 |
+ console.log() |
|
45 |
+ |
|
46 |
+ for (let i = 0; i < warnings.length; i++) { |
|
47 |
+ const warning = warnings[i] |
|
48 |
+ console.log(' ' + warning) |
|
49 |
+ } |
|
50 |
+ |
|
51 |
+ console.log() |
|
52 |
+ process.exit(1) |
|
53 |
+ } |
|
54 |
+} |
@@ -0,0 +1,101 @@ |
||
1 |
+'use strict' |
|
2 |
+const path = require('path') |
|
3 |
+const config = require('../config') |
|
4 |
+const ExtractTextPlugin = require('extract-text-webpack-plugin') |
|
5 |
+const packageConfig = require('../package.json') |
|
6 |
+ |
|
7 |
+exports.assetsPath = function (_path) { |
|
8 |
+ const assetsSubDirectory = process.env.NODE_ENV === 'production' |
|
9 |
+ ? config.build.assetsSubDirectory |
|
10 |
+ : config.dev.assetsSubDirectory |
|
11 |
+ |
|
12 |
+ return path.posix.join(assetsSubDirectory, _path) |
|
13 |
+} |
|
14 |
+ |
|
15 |
+exports.cssLoaders = function (options) { |
|
16 |
+ options = options || {} |
|
17 |
+ |
|
18 |
+ const cssLoader = { |
|
19 |
+ loader: 'css-loader', |
|
20 |
+ options: { |
|
21 |
+ sourceMap: options.sourceMap |
|
22 |
+ } |
|
23 |
+ } |
|
24 |
+ |
|
25 |
+ const postcssLoader = { |
|
26 |
+ loader: 'postcss-loader', |
|
27 |
+ options: { |
|
28 |
+ sourceMap: options.sourceMap |
|
29 |
+ } |
|
30 |
+ } |
|
31 |
+ |
|
32 |
+ // generate loader string to be used with extract text plugin |
|
33 |
+ function generateLoaders (loader, loaderOptions) { |
|
34 |
+ const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] |
|
35 |
+ |
|
36 |
+ if (loader) { |
|
37 |
+ loaders.push({ |
|
38 |
+ loader: loader + '-loader', |
|
39 |
+ options: Object.assign({}, loaderOptions, { |
|
40 |
+ sourceMap: options.sourceMap |
|
41 |
+ }) |
|
42 |
+ }) |
|
43 |
+ } |
|
44 |
+ |
|
45 |
+ // Extract CSS when that option is specified |
|
46 |
+ // (which is the case during production build) |
|
47 |
+ if (options.extract) { |
|
48 |
+ return ExtractTextPlugin.extract({ |
|
49 |
+ use: loaders, |
|
50 |
+ fallback: 'vue-style-loader' |
|
51 |
+ }) |
|
52 |
+ } else { |
|
53 |
+ return ['vue-style-loader'].concat(loaders) |
|
54 |
+ } |
|
55 |
+ } |
|
56 |
+ |
|
57 |
+ // https://vue-loader.vuejs.org/en/configurations/extract-css.html |
|
58 |
+ return { |
|
59 |
+ css: generateLoaders(), |
|
60 |
+ postcss: generateLoaders(), |
|
61 |
+ less: generateLoaders('less'), |
|
62 |
+ sass: generateLoaders('sass', { indentedSyntax: true }), |
|
63 |
+ scss: generateLoaders('sass'), |
|
64 |
+ stylus: generateLoaders('stylus'), |
|
65 |
+ styl: generateLoaders('stylus') |
|
66 |
+ } |
|
67 |
+} |
|
68 |
+ |
|
69 |
+// Generate loaders for standalone style files (outside of .vue) |
|
70 |
+exports.styleLoaders = function (options) { |
|
71 |
+ const output = [] |
|
72 |
+ const loaders = exports.cssLoaders(options) |
|
73 |
+ |
|
74 |
+ for (const extension in loaders) { |
|
75 |
+ const loader = loaders[extension] |
|
76 |
+ output.push({ |
|
77 |
+ test: new RegExp('\\.' + extension + '$'), |
|
78 |
+ use: loader |
|
79 |
+ }) |
|
80 |
+ } |
|
81 |
+ |
|
82 |
+ return output |
|
83 |
+} |
|
84 |
+ |
|
85 |
+exports.createNotifierCallback = () => { |
|
86 |
+ const notifier = require('node-notifier') |
|
87 |
+ |
|
88 |
+ return (severity, errors) => { |
|
89 |
+ if (severity !== 'error') return |
|
90 |
+ |
|
91 |
+ const error = errors[0] |
|
92 |
+ const filename = error.file && error.file.split('!').pop() |
|
93 |
+ |
|
94 |
+ notifier.notify({ |
|
95 |
+ title: packageConfig.name, |
|
96 |
+ message: severity + ': ' + error.name, |
|
97 |
+ subtitle: filename || '', |
|
98 |
+ icon: path.join(__dirname, 'logo.png') |
|
99 |
+ }) |
|
100 |
+ } |
|
101 |
+} |
@@ -0,0 +1,22 @@ |
||
1 |
+'use strict' |
|
2 |
+const utils = require('./utils') |
|
3 |
+const config = require('../config') |
|
4 |
+const isProduction = process.env.NODE_ENV === 'production' |
|
5 |
+const sourceMapEnabled = isProduction |
|
6 |
+ ? config.build.productionSourceMap |
|
7 |
+ : config.dev.cssSourceMap |
|
8 |
+ |
|
9 |
+module.exports = { |
|
10 |
+ loaders: utils.cssLoaders({ |
|
11 |
+ sourceMap: sourceMapEnabled, |
|
12 |
+ extract: isProduction |
|
13 |
+ }), |
|
14 |
+ cssSourceMap: sourceMapEnabled, |
|
15 |
+ cacheBusting: config.dev.cacheBusting, |
|
16 |
+ transformToRequire: { |
|
17 |
+ video: ['src', 'poster'], |
|
18 |
+ source: 'src', |
|
19 |
+ img: 'src', |
|
20 |
+ image: 'xlink:href' |
|
21 |
+ } |
|
22 |
+} |
@@ -0,0 +1,93 @@ |
||
1 |
+'use strict' |
|
2 |
+const path = require('path') |
|
3 |
+const utils = require('./utils') |
|
4 |
+const config = require('../config') |
|
5 |
+const vueLoaderConfig = require('./vue-loader.conf') |
|
6 |
+ |
|
7 |
+function resolve (dir) { |
|
8 |
+ return path.join(__dirname, '..', dir) |
|
9 |
+} |
|
10 |
+ |
|
11 |
+const createLintingRule = () => ({ |
|
12 |
+ test: /\.(js|vue)$/, |
|
13 |
+ loader: 'eslint-loader', |
|
14 |
+ enforce: 'pre', |
|
15 |
+ include: [resolve('src'), resolve('test')], |
|
16 |
+ options: { |
|
17 |
+ formatter: require('eslint-friendly-formatter'), |
|
18 |
+ emitWarning: !config.dev.showEslintErrorsInOverlay |
|
19 |
+ } |
|
20 |
+}) |
|
21 |
+ |
|
22 |
+module.exports = { |
|
23 |
+ context: path.resolve(__dirname, '../'), |
|
24 |
+ entry: { |
|
25 |
+ app: './src/main.js' |
|
26 |
+ }, |
|
27 |
+ output: { |
|
28 |
+ path: config.build.assetsRoot, |
|
29 |
+ filename: '[name].js', |
|
30 |
+ publicPath: process.env.NODE_ENV === 'production' |
|
31 |
+ ? config.build.assetsPublicPath |
|
32 |
+ : config.dev.assetsPublicPath |
|
33 |
+ }, |
|
34 |
+ resolve: { |
|
35 |
+ extensions: ['.js', '.vue', '.json'], |
|
36 |
+ alias: { |
|
37 |
+ 'vue$': 'vue/dist/vue.esm.js', |
|
38 |
+ '@': resolve('src'), |
|
39 |
+ } |
|
40 |
+ }, |
|
41 |
+ |
|
42 |
+ module: { |
|
43 |
+ rules: [ |
|
44 |
+ ...(config.dev.useEslint ? [createLintingRule()] : []), |
|
45 |
+ { |
|
46 |
+ test: /\.vue$/, |
|
47 |
+ loader: 'vue-loader', |
|
48 |
+ options: vueLoaderConfig |
|
49 |
+ }, |
|
50 |
+ { |
|
51 |
+ test: /\.js$/, |
|
52 |
+ loader: 'babel-loader', |
|
53 |
+ include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] |
|
54 |
+ }, |
|
55 |
+ { |
|
56 |
+ test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, |
|
57 |
+ loader: 'url-loader', |
|
58 |
+ options: { |
|
59 |
+ limit: 10000, |
|
60 |
+ name: utils.assetsPath('img/[name].[hash:7].[ext]') |
|
61 |
+ } |
|
62 |
+ }, |
|
63 |
+ { |
|
64 |
+ test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, |
|
65 |
+ loader: 'url-loader', |
|
66 |
+ options: { |
|
67 |
+ limit: 10000, |
|
68 |
+ name: utils.assetsPath('media/[name].[hash:7].[ext]') |
|
69 |
+ } |
|
70 |
+ }, |
|
71 |
+ { |
|
72 |
+ test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, |
|
73 |
+ loader: 'url-loader', |
|
74 |
+ options: { |
|
75 |
+ limit: 10000, |
|
76 |
+ name: utils.assetsPath('fonts/[name].[hash:7].[ext]') |
|
77 |
+ } |
|
78 |
+ } |
|
79 |
+ ] |
|
80 |
+ }, |
|
81 |
+ node: { |
|
82 |
+ // prevent webpack from injecting useless setImmediate polyfill because Vue |
|
83 |
+ // source contains it (although only uses it if it's native). |
|
84 |
+ setImmediate: false, |
|
85 |
+ // prevent webpack from injecting mocks to Node native modules |
|
86 |
+ // that does not make sense for the client |
|
87 |
+ dgram: 'empty', |
|
88 |
+ fs: 'empty', |
|
89 |
+ net: 'empty', |
|
90 |
+ tls: 'empty', |
|
91 |
+ child_process: 'empty' |
|
92 |
+ } |
|
93 |
+} |
@@ -0,0 +1,99 @@ |
||
1 |
+'use strict' |
|
2 |
+const utils = require('./utils') |
|
3 |
+const webpack = require('webpack') |
|
4 |
+const config = require('../config') |
|
5 |
+const merge = require('webpack-merge') |
|
6 |
+const path = require('path') |
|
7 |
+const baseWebpackConfig = require('./webpack.base.conf') |
|
8 |
+const CopyWebpackPlugin = require('copy-webpack-plugin') |
|
9 |
+const HtmlWebpackPlugin = require('html-webpack-plugin') |
|
10 |
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') |
|
11 |
+const portfinder = require('portfinder') |
|
12 |
+ |
|
13 |
+const HOST = process.env.HOST |
|
14 |
+const PORT = process.env.PORT && Number(process.env.PORT) |
|
15 |
+ |
|
16 |
+const devWebpackConfig = merge(baseWebpackConfig, { |
|
17 |
+ module: { |
|
18 |
+ rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) |
|
19 |
+ }, |
|
20 |
+ // cheap-module-eval-source-map is faster for development |
|
21 |
+ devtool: config.dev.devtool, |
|
22 |
+ |
|
23 |
+ // these devServer options should be customized in /config/index.js |
|
24 |
+ devServer: { |
|
25 |
+ clientLogLevel: 'warning', |
|
26 |
+ historyApiFallback: { |
|
27 |
+ rewrites: [ |
|
28 |
+ { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }, |
|
29 |
+ ], |
|
30 |
+ }, |
|
31 |
+ hot: true, |
|
32 |
+ contentBase: false, // since we use CopyWebpackPlugin. |
|
33 |
+ compress: true, |
|
34 |
+ host: HOST || config.dev.host, |
|
35 |
+ port: PORT || config.dev.port, |
|
36 |
+ open: config.dev.autoOpenBrowser, |
|
37 |
+ overlay: config.dev.errorOverlay |
|
38 |
+ ? { warnings: false, errors: true } |
|
39 |
+ : false, |
|
40 |
+ publicPath: config.dev.assetsPublicPath, |
|
41 |
+ proxy: config.dev.proxyTable, |
|
42 |
+ quiet: true, // necessary for FriendlyErrorsPlugin |
|
43 |
+ watchOptions: { |
|
44 |
+ poll: config.dev.poll, |
|
45 |
+ } |
|
46 |
+ }, |
|
47 |
+ plugins: [ |
|
48 |
+ new webpack.ProvidePlugin({ |
|
49 |
+ jQuery: "jquery", |
|
50 |
+ $: "jquery" |
|
51 |
+ }), |
|
52 |
+ new webpack.DefinePlugin({ |
|
53 |
+ 'process.env': require('../config/dev.env') |
|
54 |
+ }), |
|
55 |
+ new webpack.HotModuleReplacementPlugin(), |
|
56 |
+ new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. |
|
57 |
+ new webpack.NoEmitOnErrorsPlugin(), |
|
58 |
+ // https://github.com/ampedandwired/html-webpack-plugin |
|
59 |
+ new HtmlWebpackPlugin({ |
|
60 |
+ filename: 'index.html', |
|
61 |
+ template: 'index.html', |
|
62 |
+ inject: true |
|
63 |
+ }), |
|
64 |
+ // copy custom static assets |
|
65 |
+ new CopyWebpackPlugin([ |
|
66 |
+ { |
|
67 |
+ from: path.resolve(__dirname, '../static'), |
|
68 |
+ to: config.dev.assetsSubDirectory, |
|
69 |
+ ignore: ['.*'] |
|
70 |
+ } |
|
71 |
+ ]) |
|
72 |
+ ] |
|
73 |
+}) |
|
74 |
+ |
|
75 |
+module.exports = new Promise((resolve, reject) => { |
|
76 |
+ portfinder.basePort = process.env.PORT || config.dev.port |
|
77 |
+ portfinder.getPort((err, port) => { |
|
78 |
+ if (err) { |
|
79 |
+ reject(err) |
|
80 |
+ } else { |
|
81 |
+ // publish the new Port, necessary for e2e tests |
|
82 |
+ process.env.PORT = port |
|
83 |
+ // add port to devServer config |
|
84 |
+ devWebpackConfig.devServer.port = port |
|
85 |
+ |
|
86 |
+ // Add FriendlyErrorsPlugin |
|
87 |
+ devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ |
|
88 |
+ compilationSuccessInfo: { |
|
89 |
+ messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], |
|
90 |
+ }, |
|
91 |
+ onErrors: config.dev.notifyOnErrors |
|
92 |
+ ? utils.createNotifierCallback() |
|
93 |
+ : undefined |
|
94 |
+ })) |
|
95 |
+ |
|
96 |
+ resolve(devWebpackConfig) |
|
97 |
+ } |
|
98 |
+ }) |
|
99 |
+}) |
@@ -0,0 +1,149 @@ |
||
1 |
+'use strict' |
|
2 |
+const path = require('path') |
|
3 |
+const utils = require('./utils') |
|
4 |
+const webpack = require('webpack') |
|
5 |
+const config = require('../config') |
|
6 |
+const merge = require('webpack-merge') |
|
7 |
+const baseWebpackConfig = require('./webpack.base.conf') |
|
8 |
+const CopyWebpackPlugin = require('copy-webpack-plugin') |
|
9 |
+const HtmlWebpackPlugin = require('html-webpack-plugin') |
|
10 |
+const ExtractTextPlugin = require('extract-text-webpack-plugin') |
|
11 |
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') |
|
12 |
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin') |
|
13 |
+ |
|
14 |
+const env = process.env.NODE_ENV === 'testing' |
|
15 |
+ ? require('../config/test.env') |
|
16 |
+ : require('../config/prod.env') |
|
17 |
+ |
|
18 |
+const webpackConfig = merge(baseWebpackConfig, { |
|
19 |
+ module: { |
|
20 |
+ rules: utils.styleLoaders({ |
|
21 |
+ sourceMap: config.build.productionSourceMap, |
|
22 |
+ extract: true, |
|
23 |
+ usePostCSS: true |
|
24 |
+ }) |
|
25 |
+ }, |
|
26 |
+ devtool: config.build.productionSourceMap ? config.build.devtool : false, |
|
27 |
+ output: { |
|
28 |
+ path: config.build.assetsRoot, |
|
29 |
+ filename: utils.assetsPath('js/[name].[chunkhash].js'), |
|
30 |
+ chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') |
|
31 |
+ }, |
|
32 |
+ plugins: [ |
|
33 |
+ // http://vuejs.github.io/vue-loader/en/workflow/production.html |
|
34 |
+ new webpack.DefinePlugin({ |
|
35 |
+ 'process.env': env |
|
36 |
+ }), |
|
37 |
+ new UglifyJsPlugin({ |
|
38 |
+ uglifyOptions: { |
|
39 |
+ compress: { |
|
40 |
+ warnings: false |
|
41 |
+ } |
|
42 |
+ }, |
|
43 |
+ sourceMap: config.build.productionSourceMap, |
|
44 |
+ parallel: true |
|
45 |
+ }), |
|
46 |
+ // extract css into its own file |
|
47 |
+ new ExtractTextPlugin({ |
|
48 |
+ filename: utils.assetsPath('css/[name].[contenthash].css'), |
|
49 |
+ // Setting the following option to `false` will not extract CSS from codesplit chunks. |
|
50 |
+ // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. |
|
51 |
+ // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, |
|
52 |
+ // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 |
|
53 |
+ allChunks: true, |
|
54 |
+ }), |
|
55 |
+ // Compress extracted CSS. We are using this plugin so that possible |
|
56 |
+ // duplicated CSS from different components can be deduped. |
|
57 |
+ new OptimizeCSSPlugin({ |
|
58 |
+ cssProcessorOptions: config.build.productionSourceMap |
|
59 |
+ ? { safe: true, map: { inline: false } } |
|
60 |
+ : { safe: true } |
|
61 |
+ }), |
|
62 |
+ // generate dist index.html with correct asset hash for caching. |
|
63 |
+ // you can customize output by editing /index.html |
|
64 |
+ // see https://github.com/ampedandwired/html-webpack-plugin |
|
65 |
+ new HtmlWebpackPlugin({ |
|
66 |
+ filename: process.env.NODE_ENV === 'testing' |
|
67 |
+ ? 'index.html' |
|
68 |
+ : config.build.index, |
|
69 |
+ template: 'index.html', |
|
70 |
+ inject: true, |
|
71 |
+ minify: { |
|
72 |
+ removeComments: true, |
|
73 |
+ collapseWhitespace: true, |
|
74 |
+ removeAttributeQuotes: true |
|
75 |
+ // more options: |
|
76 |
+ // https://github.com/kangax/html-minifier#options-quick-reference |
|
77 |
+ }, |
|
78 |
+ // necessary to consistently work with multiple chunks via CommonsChunkPlugin |
|
79 |
+ chunksSortMode: 'dependency' |
|
80 |
+ }), |
|
81 |
+ // keep module.id stable when vendor modules does not change |
|
82 |
+ new webpack.HashedModuleIdsPlugin(), |
|
83 |
+ // enable scope hoisting |
|
84 |
+ new webpack.optimize.ModuleConcatenationPlugin(), |
|
85 |
+ // split vendor js into its own file |
|
86 |
+ new webpack.optimize.CommonsChunkPlugin({ |
|
87 |
+ name: 'vendor', |
|
88 |
+ minChunks (module) { |
|
89 |
+ // any required modules inside node_modules are extracted to vendor |
|
90 |
+ return ( |
|
91 |
+ module.resource && |
|
92 |
+ /\.js$/.test(module.resource) && |
|
93 |
+ module.resource.indexOf( |
|
94 |
+ path.join(__dirname, '../node_modules') |
|
95 |
+ ) === 0 |
|
96 |
+ ) |
|
97 |
+ } |
|
98 |
+ }), |
|
99 |
+ // extract webpack runtime and module manifest to its own file in order to |
|
100 |
+ // prevent vendor hash from being updated whenever app bundle is updated |
|
101 |
+ new webpack.optimize.CommonsChunkPlugin({ |
|
102 |
+ name: 'manifest', |
|
103 |
+ minChunks: Infinity |
|
104 |
+ }), |
|
105 |
+ // This instance extracts shared chunks from code splitted chunks and bundles them |
|
106 |
+ // in a separate chunk, similar to the vendor chunk |
|
107 |
+ // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk |
|
108 |
+ new webpack.optimize.CommonsChunkPlugin({ |
|
109 |
+ name: 'app', |
|
110 |
+ async: 'vendor-async', |
|
111 |
+ children: true, |
|
112 |
+ minChunks: 3 |
|
113 |
+ }), |
|
114 |
+ |
|
115 |
+ // copy custom static assets |
|
116 |
+ new CopyWebpackPlugin([ |
|
117 |
+ { |
|
118 |
+ from: path.resolve(__dirname, '../static'), |
|
119 |
+ to: config.build.assetsSubDirectory, |
|
120 |
+ ignore: ['.*'] |
|
121 |
+ } |
|
122 |
+ ]) |
|
123 |
+ ] |
|
124 |
+}) |
|
125 |
+ |
|
126 |
+if (config.build.productionGzip) { |
|
127 |
+ const CompressionWebpackPlugin = require('compression-webpack-plugin') |
|
128 |
+ |
|
129 |
+ webpackConfig.plugins.push( |
|
130 |
+ new CompressionWebpackPlugin({ |
|
131 |
+ asset: '[path].gz[query]', |
|
132 |
+ algorithm: 'gzip', |
|
133 |
+ test: new RegExp( |
|
134 |
+ '\\.(' + |
|
135 |
+ config.build.productionGzipExtensions.join('|') + |
|
136 |
+ ')$' |
|
137 |
+ ), |
|
138 |
+ threshold: 10240, |
|
139 |
+ minRatio: 0.8 |
|
140 |
+ }) |
|
141 |
+ ) |
|
142 |
+} |
|
143 |
+ |
|
144 |
+if (config.build.bundleAnalyzerReport) { |
|
145 |
+ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin |
|
146 |
+ webpackConfig.plugins.push(new BundleAnalyzerPlugin()) |
|
147 |
+} |
|
148 |
+ |
|
149 |
+module.exports = webpackConfig |
@@ -0,0 +1,7 @@ |
||
1 |
+'use strict' |
|
2 |
+const merge = require('webpack-merge') |
|
3 |
+const prodEnv = require('./prod.env') |
|
4 |
+ |
|
5 |
+module.exports = merge(prodEnv, { |
|
6 |
+ NODE_ENV: '"development"' |
|
7 |
+}) |
@@ -0,0 +1,81 @@ |
||
1 |
+'use strict' |
|
2 |
+// Template version: 1.3.1 |
|
3 |
+// see http://vuejs-templates.github.io/webpack for documentation. |
|
4 |
+ |
|
5 |
+const path = require('path') |
|
6 |
+ |
|
7 |
+module.exports = { |
|
8 |
+ dev: { |
|
9 |
+ |
|
10 |
+ // Paths |
|
11 |
+ assetsSubDirectory: 'static', |
|
12 |
+ assetsPublicPath: './', |
|
13 |
+ proxyTable: { |
|
14 |
+ '/api': { |
|
15 |
+ target: 'http://kodo.xfoto.com.cn',//设置你调用的接口域名和端口号 |
|
16 |
+ changeOrigin: true //跨域 |
|
17 |
+ } |
|
18 |
+ }, |
|
19 |
+ |
|
20 |
+ // Various Dev Server settings |
|
21 |
+ host: '127.0.0.1', // can be overwritten by process.env.HOST |
|
22 |
+ port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
|
23 |
+ autoOpenBrowser: true, |
|
24 |
+ errorOverlay: true, |
|
25 |
+ notifyOnErrors: true, |
|
26 |
+ poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- |
|
27 |
+ |
|
28 |
+ // Use Eslint Loader? |
|
29 |
+ // If true, your code will be linted during bundling and |
|
30 |
+ // linting errors and warnings will be shown in the console. |
|
31 |
+ useEslint: true, |
|
32 |
+ // If true, eslint errors and warnings will also be shown in the error overlay |
|
33 |
+ // in the browser. |
|
34 |
+ showEslintErrorsInOverlay: false, |
|
35 |
+ |
|
36 |
+ /** |
|
37 |
+ * Source Maps |
|
38 |
+ */ |
|
39 |
+ |
|
40 |
+ // https://webpack.js.org/configuration/devtool/#development |
|
41 |
+ devtool: 'cheap-module-eval-source-map', |
|
42 |
+ |
|
43 |
+ // If you have problems debugging vue-files in devtools, |
|
44 |
+ // set this to false - it *may* help |
|
45 |
+ // https://vue-loader.vuejs.org/en/options.html#cachebusting |
|
46 |
+ cacheBusting: true, |
|
47 |
+ |
|
48 |
+ cssSourceMap: true |
|
49 |
+ }, |
|
50 |
+ |
|
51 |
+ build: { |
|
52 |
+ // Template for index.html |
|
53 |
+ index: path.resolve(__dirname, '../dist/index.html'), |
|
54 |
+ |
|
55 |
+ // Paths |
|
56 |
+ assetsRoot: path.resolve(__dirname, '../dist'), |
|
57 |
+ assetsSubDirectory: 'static', |
|
58 |
+ assetsPublicPath: '/', |
|
59 |
+ |
|
60 |
+ /** |
|
61 |
+ * Source Maps |
|
62 |
+ */ |
|
63 |
+ |
|
64 |
+ productionSourceMap: true, |
|
65 |
+ // https://webpack.js.org/configuration/devtool/#production |
|
66 |
+ devtool: '#source-map', |
|
67 |
+ |
|
68 |
+ // Gzip off by default as many popular static hosts such as |
|
69 |
+ // Surge or Netlify already gzip all static assets for you. |
|
70 |
+ // Before setting to `true`, make sure to: |
|
71 |
+ // npm install --save-dev compression-webpack-plugin |
|
72 |
+ productionGzip: false, |
|
73 |
+ productionGzipExtensions: ['js', 'css'], |
|
74 |
+ |
|
75 |
+ // Run the build command with an extra argument to |
|
76 |
+ // View the bundle analyzer report after build finishes: |
|
77 |
+ // `npm run build --report` |
|
78 |
+ // Set to `true` or `false` to always turn it on or off |
|
79 |
+ bundleAnalyzerReport: process.env.npm_config_report |
|
80 |
+ } |
|
81 |
+} |
@@ -0,0 +1,4 @@ |
||
1 |
+'use strict' |
|
2 |
+module.exports = { |
|
3 |
+ NODE_ENV: '"production"' |
|
4 |
+} |
@@ -0,0 +1,7 @@ |
||
1 |
+'use strict' |
|
2 |
+const merge = require('webpack-merge') |
|
3 |
+const devEnv = require('./dev.env') |
|
4 |
+ |
|
5 |
+module.exports = merge(devEnv, { |
|
6 |
+ NODE_ENV: '"testing"' |
|
7 |
+}) |
@@ -0,0 +1 @@ |
||
1 |
+<html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,minimal-ui"><meta name=screen-orientation content=portrait><meta name=apple-mobile-web-app-capable content=yes><meta name=format-detection content="telephone=no"><meta name=full-screen content=yes><meta name=x5-fullscreen content=true><title>盈多</title><link href=/static/css/app.3a26c6e73b7d3ba6472504322287f93a.css rel=stylesheet></head><body><div id=app><router-view></router-view></div><script type=text/javascript src=/static/js/manifest.8482e608f8350cc30a57.js></script><script type=text/javascript src=/static/js/vendor.4d2f6d4ff07a2e355c29.js></script><script type=text/javascript src=/static/js/app.b0c121ab3b3ceaefb9c6.js></script></body><style media=screen>body { margin: 0 !important; }</style></html> |
@@ -0,0 +1,196 @@ |
||
1 |
+{ |
|
2 |
+ "海门": [121.15, 31.89], |
|
3 |
+ "鄂尔多斯": [109.781327, 39.608266], |
|
4 |
+ "招远": [120.38, 37.35], |
|
5 |
+ "舟山": [122.207216, 29.985295], |
|
6 |
+ "齐齐哈尔": [123.97, 47.33], |
|
7 |
+ "盐城": [120.13, 33.38], |
|
8 |
+ "赤峰": [118.87, 42.28], |
|
9 |
+ "青岛": [120.33, 36.07], |
|
10 |
+ "乳山": [121.52, 36.89], |
|
11 |
+ "金昌": [102.188043, 38.520089], |
|
12 |
+ "泉州": [118.58, 24.93], |
|
13 |
+ "莱西": [120.53, 36.86], |
|
14 |
+ "日照": [119.46, 35.42], |
|
15 |
+ "胶南": [119.97, 35.88], |
|
16 |
+ "南通": [121.05, 32.08], |
|
17 |
+ "拉萨": [91.11, 29.97], |
|
18 |
+ "云浮": [112.02, 22.93], |
|
19 |
+ "梅州": [116.1, 24.55], |
|
20 |
+ "文登": [122.05, 37.2], |
|
21 |
+ "上海": [121.48, 31.22], |
|
22 |
+ "攀枝花": [101.718637, 26.582347], |
|
23 |
+ "威海": [122.1, 37.5], |
|
24 |
+ "承德": [117.93, 40.97], |
|
25 |
+ "厦门": [118.1, 24.46], |
|
26 |
+ "汕尾": [115.375279, 22.786211], |
|
27 |
+ "潮州": [116.63, 23.68], |
|
28 |
+ "丹东": [124.37, 40.13], |
|
29 |
+ "太仓": [121.1, 31.45], |
|
30 |
+ "曲靖": [103.79, 25.51], |
|
31 |
+ "烟台": [121.39, 37.52], |
|
32 |
+ "福州": [119.3, 26.08], |
|
33 |
+ "瓦房店": [121.979603, 39.627114], |
|
34 |
+ "即墨": [120.45, 36.38], |
|
35 |
+ "抚顺": [123.97, 41.97], |
|
36 |
+ "玉溪": [102.52, 24.35], |
|
37 |
+ "张家口": [114.87, 40.82], |
|
38 |
+ "阳泉": [113.57, 37.85], |
|
39 |
+ "莱州": [119.942327, 37.177017], |
|
40 |
+ "湖州": [120.1, 30.86], |
|
41 |
+ "汕头": [116.69, 23.39], |
|
42 |
+ "昆山": [120.95, 31.39], |
|
43 |
+ "宁波": [121.56, 29.86], |
|
44 |
+ "湛江": [110.359377, 21.270708], |
|
45 |
+ "揭阳": [116.35, 23.55], |
|
46 |
+ "荣成": [122.41, 37.16], |
|
47 |
+ "连云港": [119.16, 34.59], |
|
48 |
+ "葫芦岛": [120.836932, 40.711052], |
|
49 |
+ "常熟": [120.74, 31.64], |
|
50 |
+ "东莞": [113.75, 23.04], |
|
51 |
+ "河源": [114.68, 23.73], |
|
52 |
+ "淮安": [119.15, 33.5], |
|
53 |
+ "泰州": [119.9, 32.49], |
|
54 |
+ "南宁": [108.33, 22.84], |
|
55 |
+ "营口": [122.18, 40.65], |
|
56 |
+ "惠州": [114.4, 23.09], |
|
57 |
+ "江阴": [120.26, 31.91], |
|
58 |
+ "蓬莱": [120.75, 37.8], |
|
59 |
+ "韶关": [113.62, 24.84], |
|
60 |
+ "嘉峪关": [98.289152, 39.77313], |
|
61 |
+ "广州": [113.23, 23.16], |
|
62 |
+ "延安": [109.47, 36.6], |
|
63 |
+ "太原": [112.53, 37.87], |
|
64 |
+ "清远": [113.01, 23.7], |
|
65 |
+ "中山": [113.38, 22.52], |
|
66 |
+ "昆明": [102.73, 25.04], |
|
67 |
+ "寿光": [118.73, 36.86], |
|
68 |
+ "盘锦": [122.070714, 41.119997], |
|
69 |
+ "长治": [113.08, 36.18], |
|
70 |
+ "深圳": [114.07, 22.62], |
|
71 |
+ "珠海": [113.52, 22.3], |
|
72 |
+ "宿迁": [118.3, 33.96], |
|
73 |
+ "咸阳": [108.72, 34.36], |
|
74 |
+ "铜川": [109.11, 35.09], |
|
75 |
+ "平度": [119.97, 36.77], |
|
76 |
+ "佛山": [113.11, 23.05], |
|
77 |
+ "海口": [110.35, 20.02], |
|
78 |
+ "江门": [113.06, 22.61], |
|
79 |
+ "章丘": [117.53, 36.72], |
|
80 |
+ "肇庆": [112.44, 23.05], |
|
81 |
+ "大连": [121.62, 38.92], |
|
82 |
+ "临汾": [111.5, 36.08], |
|
83 |
+ "吴江": [120.63, 31.16], |
|
84 |
+ "石嘴山": [106.39, 39.04], |
|
85 |
+ "沈阳": [123.38, 41.8], |
|
86 |
+ "苏州": [120.62, 31.32], |
|
87 |
+ "茂名": [110.88, 21.68], |
|
88 |
+ "嘉兴": [120.76, 30.77], |
|
89 |
+ "长春": [125.35, 43.88], |
|
90 |
+ "胶州": [120.03336, 36.264622], |
|
91 |
+ "银川": [106.27, 38.47], |
|
92 |
+ "张家港": [120.555821, 31.875428], |
|
93 |
+ "三门峡": [111.19, 34.76], |
|
94 |
+ "锦州": [121.15, 41.13], |
|
95 |
+ "南昌": [115.89, 28.68], |
|
96 |
+ "柳州": [109.4, 24.33], |
|
97 |
+ "三亚": [109.511909, 18.252847], |
|
98 |
+ "自贡": [104.778442, 29.33903], |
|
99 |
+ "吉林": [126.57, 43.87], |
|
100 |
+ "阳江": [111.95, 21.85], |
|
101 |
+ "泸州": [105.39, 28.91], |
|
102 |
+ "西宁": [101.74, 36.56], |
|
103 |
+ "宜宾": [104.56, 29.77], |
|
104 |
+ "呼和浩特": [111.65, 40.82], |
|
105 |
+ "成都": [104.06, 30.67], |
|
106 |
+ "大同": [113.3, 40.12], |
|
107 |
+ "镇江": [119.44, 32.2], |
|
108 |
+ "桂林": [110.28, 25.29], |
|
109 |
+ "张家界": [110.479191, 29.117096], |
|
110 |
+ "宜兴": [119.82, 31.36], |
|
111 |
+ "北海": [109.12, 21.49], |
|
112 |
+ "西安": [108.95, 34.27], |
|
113 |
+ "金坛": [119.56, 31.74], |
|
114 |
+ "东营": [118.49, 37.46], |
|
115 |
+ "牡丹江": [129.58, 44.6], |
|
116 |
+ "遵义": [106.9, 27.7], |
|
117 |
+ "绍兴": [120.58, 30.01], |
|
118 |
+ "扬州": [119.42, 32.39], |
|
119 |
+ "常州": [119.95, 31.79], |
|
120 |
+ "潍坊": [119.1, 36.62], |
|
121 |
+ "重庆": [106.54, 29.59], |
|
122 |
+ "台州": [121.420757, 28.656386], |
|
123 |
+ "南京": [118.78, 32.04], |
|
124 |
+ "滨州": [118.03, 37.36], |
|
125 |
+ "贵阳": [106.71, 26.57], |
|
126 |
+ "无锡": [120.29, 31.59], |
|
127 |
+ "本溪": [123.73, 41.3], |
|
128 |
+ "克拉玛依": [84.77, 45.59], |
|
129 |
+ "渭南": [109.5, 34.52], |
|
130 |
+ "马鞍山": [118.48, 31.56], |
|
131 |
+ "宝鸡": [107.15, 34.38], |
|
132 |
+ "焦作": [113.21, 35.24], |
|
133 |
+ "句容": [119.16, 31.95], |
|
134 |
+ "北京": [116.46, 39.92], |
|
135 |
+ "徐州": [117.2, 34.26], |
|
136 |
+ "衡水": [115.72, 37.72], |
|
137 |
+ "包头": [110, 40.58], |
|
138 |
+ "绵阳": [104.73, 31.48], |
|
139 |
+ "乌鲁木齐": [87.68, 43.77], |
|
140 |
+ "枣庄": [117.57, 34.86], |
|
141 |
+ "杭州": [120.19, 30.26], |
|
142 |
+ "淄博": [118.05, 36.78], |
|
143 |
+ "鞍山": [122.85, 41.12], |
|
144 |
+ "溧阳": [119.48, 31.43], |
|
145 |
+ "库尔勒": [86.06, 41.68], |
|
146 |
+ "安阳": [114.35, 36.1], |
|
147 |
+ "开封": [114.35, 34.79], |
|
148 |
+ "济南": [117, 36.65], |
|
149 |
+ "德阳": [104.37, 31.13], |
|
150 |
+ "温州": [120.65, 28.01], |
|
151 |
+ "九江": [115.97, 29.71], |
|
152 |
+ "邯郸": [114.47, 36.6], |
|
153 |
+ "临安": [119.72, 30.23], |
|
154 |
+ "兰州": [103.73, 36.03], |
|
155 |
+ "沧州": [116.83, 38.33], |
|
156 |
+ "临沂": [118.35, 35.05], |
|
157 |
+ "南充": [106.110698, 30.837793], |
|
158 |
+ "天津": [117.2, 39.13], |
|
159 |
+ "富阳": [119.95, 30.07], |
|
160 |
+ "泰安": [117.13, 36.18], |
|
161 |
+ "诸暨": [120.23, 29.71], |
|
162 |
+ "郑州": [113.65, 34.76], |
|
163 |
+ "哈尔滨": [126.63, 45.75], |
|
164 |
+ "聊城": [115.97, 36.45], |
|
165 |
+ "芜湖": [118.38, 31.33], |
|
166 |
+ "唐山": [118.02, 39.63], |
|
167 |
+ "平顶山": [113.29, 33.75], |
|
168 |
+ "邢台": [114.48, 37.05], |
|
169 |
+ "德州": [116.29, 37.45], |
|
170 |
+ "济宁": [116.59, 35.38], |
|
171 |
+ "荆州": [112.239741, 30.335165], |
|
172 |
+ "宜昌": [111.3, 30.7], |
|
173 |
+ "义乌": [120.06, 29.32], |
|
174 |
+ "丽水": [119.92, 28.45], |
|
175 |
+ "洛阳": [112.44, 34.7], |
|
176 |
+ "秦皇岛": [119.57, 39.95], |
|
177 |
+ "株洲": [113.16, 27.83], |
|
178 |
+ "石家庄": [114.48, 38.03], |
|
179 |
+ "莱芜": [117.67, 36.19], |
|
180 |
+ "常德": [111.69, 29.05], |
|
181 |
+ "保定": [115.48, 38.85], |
|
182 |
+ "湘潭": [112.91, 27.87], |
|
183 |
+ "金华": [119.64, 29.12], |
|
184 |
+ "岳阳": [113.09, 29.37], |
|
185 |
+ "长沙": [113, 28.21], |
|
186 |
+ "衢州": [118.88, 28.97], |
|
187 |
+ "廊坊": [116.7, 39.53], |
|
188 |
+ "菏泽": [115.480656, 35.23375], |
|
189 |
+ "合肥": [117.27, 31.86], |
|
190 |
+ "武汉": [114.31, 30.52], |
|
191 |
+ "大庆": [125.03, 46.58], |
|
192 |
+ "林芝地": [94.25, 29.59], |
|
193 |
+ "果洛藏族自治": [97.42, 34.81], |
|
194 |
+ "闵行": [121.23, 31.07], |
|
195 |
+ "那曲地": [92.1, 31.47] |
|
196 |
+} |
@@ -0,0 +1,2 @@ |